package com.hq.fxh.No4_XiaoXi.PingLun;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.handmark.pulltorefresh.library.PullToRefreshListView;
import com.hq.fxh.No0_ChengQu.Activity.BaseActivity;
import com.hq.fxh.No5_User.User.Adapter.Ladapter_MyZan;
import com.hq.fxh.R;

import static cn.jpush.android.api.JPushInterface.a.q;

public class AllCommentActivity extends BaseActivity implements View.OnClickListener {

    protected ImageView toolbarImageBack;
    protected LinearLayout toolbarLayoutBack;
    protected TextView toolBarTvTitle;
    protected TextView toolBarTvMore;
    protected LinearLayout toolbarLayoutMore;
    protected PullToRefreshListView listFenSi;
    private Ladapter_MyZan adapter;


    @Override
    public void onClick(View view) {
        if (view.getId() == R.id.toolbar_Layout_back) {
            finish();

        }
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_my_fen_si;
    }

    @Override
    protected  void initView() {
        toolbarImageBack = (ImageView) findViewById(R.id.toolbar_image_back);
        toolbarLayoutBack = (LinearLayout) findViewById(R.id.toolbar_Layout_back);
        toolbarLayoutBack.setOnClickListener(AllCommentActivity.this);
        toolBarTvTitle = (TextView) findViewById(R.id.toolBar_tv_Title);
        toolBarTvMore = (TextView) findViewById(R.id.toolBar_tv_More);
        toolbarLayoutMore = (LinearLayout) findViewById(R.id.toolbar_Layout_More);
        listFenSi = (PullToRefreshListView) findViewById(R.id.list_FenSi);
    }

    @Override
    protected  void initData() {
        toolBarTvTitle.setText("全部评论");
        toolBarTvMore.setVisibility(View.INVISIBLE);
        adapter = new Ladapter_MyZan();
        listFenSi.setAdapter(adapter);
    }
}
